package com.mi.entity;

 
import java.util.Set;
 
 
/**
 * Phonebrand entity. @author MyEclipse Persistence Tools
 */

public class Phonebrand implements java.io.Serializable {

	// Fields

	private Integer id;
	private String brandName;
 
	private Set<Phone> phones;
  

	// Constructors

	/** default constructor */
	public Phonebrand() {
	}

	/** full constructor */
 
	public Phonebrand(Integer id, String brandName, Set<Phone> phones) {
		super();
		this.id = id;
		this.brandName = brandName;
		this.phones = phones;
	}


	// Property accessors

	@Override
	public String toString() {
		return "Phonebrand [id=" + id + ", brandName=" + brandName + ", phones=" + phones.size() + "]";
	}
 
	public Integer getId() {
		return this.id;
	}

 
 
	public void setId(Integer id) {
		this.id = id;
	}

	public String getBrandName() {
		return this.brandName;
	}

	public void setBrandName(String brandName) {
		this.brandName = brandName;
	}

 
	public Set<Phone> getPhones() {
		return phones;
	}

	public void setPhones(Set<Phone> phones) {
		this.phones = phones;
	}
 
}